package se.webbzon.oschi01.sound;

import java.io.IOException;
import java.io.InputStream;

import javax.sound.sampled.AudioFormat;

public interface DataLineSource extends FiniteSoundSource {
	
	/** Returns the format of the audio contained by this 
	 * DataLineSource. **/
	public AudioFormat getFormat();
	
	/** Returns a new input stream from where the content of this
	 * DataLineSource can be played. **/
	public InputStream createInputStream() throws IOException;
	
	/** Returns the size of the content in this DataLineSource (in bytes). **/
	public int getSize();

}
